@extends('layouts.app', ['active' => 0])

@section('content')

                        <div id="applyFor" class="panel panel-default" style="text-align:center;width:100%;margin:0 auto;height:60px;padding-top:20px">
                            <span>{{$message}}</span>,将在<span class="loginTime" style="font-weight:bold">{{$jumpTime}}</span>
                            秒后跳转至<a href="{{$url}}">{{$pageName}}</a>页面
                        </div>

@endsection


@section('script')

    <script type="text/javascript">
        $(function(){
            var url = "{{$url}}"
            var loginTime = parseInt($('.loginTime').text());
            var time = setInterval(function(){
                loginTime = loginTime-1;
                $('.loginTime').text(loginTime);
                if(loginTime==0){
                    clearInterval(time);
                    window.location.href=url;
                }
            },1000);
        })
    </script>
@endsection